Audio Class Reference

#include <Audio.h>

List of all members.

Public Member Functions

 Audio ()
int initSound ()
void exitOpenAL ()
void killALData ()
int getSoundId ()
int getSoundCrashId ()

Private Attributes

ALuint sound_id
ALuint sound_crash_id
int play_flag
ALuint boom [2]
ALCdevice * dev
ALvoid * data
ALCcontext * context_id
ALuint moving_source [2]


Detailed Description

A Audio class.This class is used for managing audio operations.


Constructor & Destructor Documentation

Audio::Audio (   ) 
 

A constructor. Initializes context_id.


Member Function Documentation

void Audio::exitOpenAL (   ) 
 

make exiting operations from the sources, devices, and sound data.

int Audio::getSoundCrashId (   ) 
 

returns sound id of the crash sound effect.

Returns:
sound_crash_id

int Audio::getSoundId (   ) 
 

returns sound id of the background music.

Returns:
sound_id

int Audio::initSound (   ) 
 

make initialization operations about the sources, devices, and sound data.

Returns:
Operation success

void Audio::killALData (   ) 
 

delete all the buffers about the sound operation.


Member Data Documentation

ALuint Audio::boom[2] [private]
 

a private ALuint array. It holds sound datas.

ALCcontext* Audio::context_id [private]
 

ALvoid* Audio::data [private]
 

a private ALuint array. Pointer to the audio data.

ALCdevice* Audio::dev [private]
 

a private ALuint array. It shows audio device.

ALuint Audio::moving_source[2] [private]
 

a private ALuint array. Pointer to an array of ALuint values which will store the names of the new sources.

int Audio::play_flag [private]
 

a private variable. It shows if the music is played before.

ALuint Audio::sound_crash_id [private]
 

a private variable. It holds id of the crash sound effect.

ALuint Audio::sound_id [private]
 

a private variable. It holds id of the background music.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:43:59 2006 by  doxygen 1.4.6-NO